package com.example.workflow.controller;

import com.example.workflow.pojo.Result;
import com.example.workflow.service.FormService;
import com.example.workflow.vo.RemindVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/remind")
@Slf4j
public class RemindController {
    @Autowired
    private FormService formService;

    @GetMapping("/timeout")
    public Result<Long> remind() {
        return Result.success(formService.remind());
    }
}
